<?php
/**
 * ============================================================================
 * Copyright (c) 2015-2018 贵州大师兄信息技术有限公司 All rights reserved.
 * siteַ: http://www.dsxcms.com
 * ============================================================================
 * @author:     David Song<songdewei@163.com>
 * @version:    v1.0.0
 * ---------------------------------------------
 * Date: 2018/11/12
 * Time: 10:21 AM
 */

namespace App\WechatMessages\ZPH;


use App\WeChat\Message\TemplateMessage;

class OrderRefundCreatedMessage extends TemplateMessage
{
    protected $template_id = 'khgJ44-ZJQ_RO9Ia3-kZd-RTyGJiD0GrMX4xCIfT3dI';

    public function __construct()
    {
        $this->setFirst('您的退款申请已经提交成功啦！');
        $this->setRemark('我们会尽快处理，请耐心等待！');
    }

    public function setOrderNo($value, $color='#333')
    {
        $this->setDataValue('keyword1', $value, $color);
    }

    public function setShopName($value, $color='#333')
    {
        $this->setDataValue('keyword2', $value, $color);
    }

    public function setTradeAmount($value, $color='#333')
    {
        $this->setDataValue('keyword3', $value, $color);
    }

    public function setRefundAmount($value, $color='#333')
    {
        $this->setDataValue('keyword4', $value, $color);
    }

    public function setTime($value, $color='#333')
    {
        $this->setDataValue('keyword5', $value, $color);
    }
}
